#!/usr/bin/python

import smtplib
msg = 'Hello world.'

server = smtplib.SMTP('smtp.gmail.com',587) #port 465 or 587
server.ehlo()
server.starttls()
server.ehlo()
server.login('iqbalforall@gmail.com','Think_Allah')
server.sendmail('iqbalforall@gmail.com','iqbalforall@gmail.com',msg)
server.close()
